<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>项目技术情况
</div>
<table id="tblTechnologys" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="35%">发明专利名称</th>
			<th class="TblHead" align="center" width="20%">专利号</th>
			<th class="TblHead" align="center" width="15%">授权时间</th>
			<th class="TblHead" align="center" width="20%">专利权人</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton"
				name="selTechnologys">
			</td>
			<td align="center"><span name="technologys|technology[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input
				name="technologys|technology[0]|name" class="required input_text "
				maxlength=50 style="width: 80%" label="发明专利名称" value="">
			</td>

			<td align="center"><input
				name="technologys|technology[0]|zhuanli_no"
				class="required input_text " maxlength=50 style="width: 80%"
				label="专利号" value="">
			</td>
			<td align="center"><input id="technology_date_[0]"
				name="technologys|technology[0]|date" label="授权时间" value=""
				class="required input_text date " style="width: 60%" />
			</td>
			<td align="center"><input
				name="technologys|technology[0]|psnname" class="required input_text "
				maxlength=50 style="width: 80%" label="专利权人" value="">
			</td>
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/technologys/technology"
				var="technology">

				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center"><input type="radio" class="radiobutton"
						name="selTechnologys">
					</td>
					<td align="center"><span
						name="technologys/technology[${flag}${index}]@seq_no"><x:out
								select="$technology/@seq_no" /></span>
					</td>
					<td align="center"><input
						name="technologys/technology[${flag}${index}]/name"
						class="required input_text " maxlength=50 style="width: 80%"
						label="发明专利名称" value="<x:out select="$technology/name"/>" />
					</td>
					<td align="center"><input
						name="technologys/technology[${flag}${index}]/zhuanli_no"
						class="required input_text " maxlength=50 style="width: 80%"
						label="专利号" value="<x:out select="$technology/zhuanli_no"/>" />
					</td>
					<td align="center"><c:set var="date" scope="page">
							<x:out select="$technology/date" />
						</c:set> <input value="${date}" label="授权时间"
						id="technology_date_[${flag}${index}]"
						name="technologys/technology[${flag}${index}]/date"
						class="required date input_text " style="width: 60%" />
					</td>
					<td align="center"><input
						name="technologys/technology[${flag}${index}]/psnname"
						class="required input_text " maxlength=50 style="width: 80%"
						label="专利权人" value="<x:out select="$technology/psnname"/>" />
					</td>

				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			<script type="text/javascript">
				showAllDateTag("tblTechnologys");
			</script>
	</tbody>
</table>
<br>
<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="addNewRow('tblTechnologys');showDateTag('tblTechnologys');">
			<input class="button" name="cmdMovePrev" type=button value="上移"
			onclick="movePrev('tblTechnologys','selTechnologys')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblTechnologys','selTechnologys')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblTechnologys','项目技术情况');">
		</td>
	</tr>
</table>